package itsm.isperp.module.entity.app;

import itsm.isperp.framework.data.mybatis.domain.AbstractTreeNode;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 部门数据实体
 * 
 * @author lizx
 * @date 2013-2-17
 * @version V1.0
 */
@Entity
@Table(name = "app_department")
public class AppDepartment extends AbstractTreeNode {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column(name = "description", length = 255)
	private String description;

	@Column(name = "level", length = 10)
	private Integer level;

	@Column(name = "tel", length = 50)
	private String tel;

	@Column(name = "fax", length = 50)
	private String fax;

	@Column(name = "enable", length = 1)
	private boolean enable;

	@Column(name = "mod_user", length = 100)
	private String modUser;

	@Column(name = "mod_time")
	private Date modTime;
	
	@Column(name = "are_customer_dept)", length = 1)
  private boolean areCustomerDept;

	public String getDescription() {
		return description;
	}

	public Integer getLevel() {
		return level;
	}

	public String getTel() {
		return tel;
	}

	public String getFax() {
		return fax;
	}

	public boolean getEnable() {
		return enable;
	}

	public String getModUser() {
		return modUser;
	}

	public Date getModTime() {
		return modTime;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public void setModUser(String modUser) {
		this.modUser = modUser;
	}

	public void setModTime(Date modTime) {
		this.modTime = modTime;
	}

  public boolean isAreCustomerDept() {
    return areCustomerDept;
  }

  public void setAreCustomerDept(boolean areCustomerDept) {
    this.areCustomerDept = areCustomerDept;
  }

}
